package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.AgentRebateRule;
import com.weixing.mall.provider.model.dto.AgentRebateRuleDto;
import com.weixing.mall.provider.model.query.AgentRebateRuleQuery;
import com.weixing.mall.provider.model.vo.AgentRebateRuleVo;
import com.weixing.mall.provider.model.vo.RebateRuleVo;

import java.util.List;

/**
 * <p>
 * 促销模块-代理商活动返利规则配置表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-16
 */
public interface IAgentRebateRuleService extends IService<AgentRebateRule> {

    IPage<AgentRebateRuleVo> findList(Page initMpPage, AgentRebateRuleQuery query);

    void save(AgentRebateRuleDto dto);

    void deleteById(long id);

    List<RebateRuleVo> getByName(String name);

    List<RebateRuleVo> selectByRuleId(Long id);

    AgentRebateRule selectByName(String ruleName);
}
